package com.remon.quartz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 定时器状态
 *
 * @author remon
 * @create 2018-09-09 11:36
 **/
@Entity
@Table(name = "QRTZ_SCHEDULER_STATE")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QrtzScheduleState {

    /**
     * 设计器名称
     */
    @Id
    @Column(name = "SCHED_NAME")
    private String schedName;
    /**
     * 初始化名称
     */
    @Column(name = "INSTANCE_NAME")
    private String instanceName;
    /**
     * 最后检查时间
     */
    @Column(name = "LAST_CHECKIN_TIME")
    private Long lastCheckinTime;

    /**
     * 检查定时器是时间
     */
    @Column(name = "CHECKIN_INTERVAL")
    private Long checkinInterval;
}
